#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a = 0;
	int i = 0;
	int arr[100] = { 0 };
	for (i = 0; i < 6; i++)
	{
		scanf("%d", &arr[i]);
	}
	int max = 0;
	int m = 0;
	for (i = 0; i < 6; i++)
	{
		if (arr[i] > max)
		{
			max = arr[i];
			m = i;
		}
	}
	printf("max=%d index=%d", max, m);
	return 0;
}